package com.engine4cloud.tdf.education.dto.update;

import com.engine4cloud.tdf.education.dto.EduActivitiesFileDTO;
import com.engine4cloud.tdf.education.dto.create.PsychologicalCounsellingAttendCreateDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 心理辅导
 *
 * @author wenjie
 * @date 2024-08-13 16:56:33
 */
@Data
@Schema(description = "心理辅导")
public class EduPsychologicalCounsellingUpdateDTO implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /**
     * 辅导开始时间
     */
    @Schema(description = "辅导开始时间", example = "2024-07-01 00:00:00")
    @NotNull(message = "辅导开始时间不能为空")
    private LocalDateTime fdkssj;

    /**
     * 辅导结束时间
     */
    @Schema(description = "辅导结束时间", example = "2024-07-01 00:00:00")
    @NotNull(message = "辅导结束时间不能为空")
    private LocalDateTime fdjssj;

    /**
     * 辅导时长
     */
    @Schema(description = "辅导时长", example = "2.5")
    @NotNull(message = "辅导时长不能为空")
    private BigDecimal fdsc;

    /**
     * 辅导方式
     */
    @Schema(description = "辅导方式", example = "自填")
    @NotBlank(message = "辅导方式不能为空")
    private String fdfs;

    /**
     * 辅导主要内容
     */
    @Schema(description = "辅导主要内容")
    @NotBlank(message = "辅导主要内容不能为空")
    private String fdnr;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 相关文件
     */
    @Schema(description = "相关文件")
    private List<EduActivitiesFileDTO> fileList;

    /**
     * 参加人员列表
     */
    @Schema(description = "参加人员列表")
    @NotEmpty(message = "参加人员列表不能为空")
    private List<PsychologicalCounsellingAttendCreateDTO> attendList;
}